package com.jtemimal.resp;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class CommandResult {
    private String output;
    private String error;
    private List<String> suggestions;
    private String type;

    public CommandResult(String output, String error) {
        this.output = output;
        this.error = error;
    }

    public CommandResult(List<String> suggestions) {
        this.suggestions = suggestions;
    }

    public static CommandResult interactive(String output) {
        CommandResult result = new CommandResult();
        result.setOutput(output);
        result.setType("interactive");
        return result;
    }
}
